<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="java.util.*" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>包装类综合应用实例</title>
</head>
<body>

<% // 以下是Java程序片
	boolean booleanTemp = true;
	Boolean mBoolean = new Boolean(booleanTemp);
	byte byteTemp = 80;
	Byte mByte = new Byte(byteTemp);
	char charTemp = 'c';
	Character mCharacter = new Character(charTemp);
	int intTemp = 234;
	Integer mInteger = new Integer(intTemp);
	short shortTemp = 234;
	Short mShort = new Short(shortTemp);
	long longTemp = 123456;
	Long mLong = new Long(longTemp);
	float floatTemp = 1.234f;
	Float mFloat = new Float(floatTemp);
	double doubleTemp = 1.23E-8; // 科学计数法
	Double mDouble = new Double(doubleTemp);
	out.println("布尔值包装对象  mBoolean 值为： " + mBoolean + "<br>");
	out.println("字符型包装对象  mCharacter 值为： " + mCharacter + "<br>");
	out.println("整形包装对象  mInteger 值为： " + mInteger + "<br>");
	out.println("短整型包装对象  mShort 值为： " + mShort + "<br>");
	out.println("长整型包装对象  mLong 值为： " + mLong + "<br>");
	out.println("单精度浮点型包装对象  mFloat 值为： " + mFloat + "<br>");
	out.println("双精度浮点型包装对象 mDouble 值为： " + mDouble + "<br>");
%>

</body>
</html>